package cn.edu.sziit.util;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONObject;

/**
 * 向页面输出东西
 * @author 13748
 *
 */
public class ResponseUtil {
   public static void write(HttpServletResponse response,Object o )throws Exception{
	   response.setContentType("text/html;charset=utf-8");
	   PrintWriter out=response.getWriter();
	   out.println(o.toString());
	   out.flush();
	   out.close();
   }
}
